package com.ljd.service;

import com.ljd.entity.Book;
import com.ljd.entity.Borrow;

import java.util.List;

public interface BookService {
    public List<Book> findAllBooks(int page);
    public Integer getPagesCount();
    public void addBorrow(Integer bookid, Integer readerid);
    public List<Borrow> findAllBorrowByReaderId(Integer page,Integer readerid);
    public List<Borrow> findAllBorrowByState(Integer page,Integer state);
    public Integer getBorrowPagesCount(Integer readerid);
    public Integer getBorrowPagesCountByState(Integer state);
    public void handleBorrow(Integer borrowid,Integer state,Integer adminid);
}
